Place it as the payoff at the end of a reveal sequence, after the setup and the build-up, so the verdict closes the scene. Follow it with the Law and Order dun dun for a courtroom-style sting that keeps the joke moving.