title: How to return string name of calling method?
body: <p>Right now my code works as such:    </p>
  
  <pre><code>def method_a
    self.method_b ==&gt; 'method_b'
  end
  
  def method_b
    puts self.name_of_calling_method
  end
  
  def name_of_calling_method
    if  /`(.*)'/.match(caller.first)
      return $1
    else
      return nil
    end
  end
  </code></pre>
  
  <p>Instead of method_b printing 'method_b', how can I print the name of the calling method - 'method_a'?</p>