Hit the nail on the head

When you do or say something exactly right and appropriate at the moment

Examples

Jeremy doesn’t talk much, but when he does he hits the nail on the head.