How to get lastQuery

After making a CDb call, what is best way to output the last query executed?