Put it in the middle of a fail edit, after Sudden Suspense has built the tension and before Knuckles Oh No closes the joke. For a physical gag, follow it with Cartoon Slip Sound Effect instead, so the slip lands as the consequence of the mistake just shown.