Using PostgreSQL 9.6.x with official Java driver 42.2.4
:
...myPreparedStatement.execute...
myPreparedStatement.toString()
Will show the SQL with the ?
already replaced, which is what I was looking for.
Just added this answer to cover the postgres case.
I would never have thought it could be so simple.