Pry::Method.from_str fails to find by name unbound method that was removed from the class. As 'whereami' command needs only name of the method it can fetch that name directly from binding without performing lookup of the method itself.