What is the meaning of the idiom “Spill the beans”?

A. To make a mess
B. To reveal a secret
C. To tell a lie
D. To start a fight
✅ Answer: B. To reveal a secret