to say sth that is exactly right
Oxford100% of films
You hit the nail on the head, Mr. Gustave.
- You hit the nail on the head, - Beautiful.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition