title: How to get the line of code that triggers a query?
body: <p>is there a way (a gem, a plugin or something else) in rails 3.2 to know which line of code triggers a database query?
  For example in my log I have:</p>
  
  <pre><code>User Load (0.4ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1
  </code></pre>
  
  <p>How can I know the line of code that triggers the query?
  Thx...</p>