What is the meaning of [A penny for your thoughts]

A way of asking what someone is thinking