View original Gist on GitHub
class Foo def initialize p "#{self.class.name}##{__method__}" end end Foo.new # => Foo#initialize