title: What is the proper way to log manual SQL statements with active record?
body: <p>I am doing a raw sql query with PG exec_params:</p>
  
  <pre><code>ActiveRecord::Base.connection.raw_connection.exec_params(...)
  </code></pre>
  
  <p>When this query is executed, there is no friendly SQL logging happening.  Is there a preferred way to get that to happen so I can actually see what is executed, similar to when I do a regular query via the active record api?</p>