Maybe $sth->{Statement} is handy, which will give you the actual SQL that was prepared/executed.
In reply to Re: How to view SQL statements by erix in thread How to view SQL statements by Kanishka