Place it at the end of a short fail sequence, after the mistake is clear, then follow it with a reaction sound that lets the joke settle. Pair it with the moment of realisation first and a fail sting afterwards for a clean three-beat confession gag.