What is the meaning of [Talk of the devil and he is sure to appear]

We say this jokingly in shortened from when we are joined by a person we have
just been talking about.

> ‘Well, talk of the devil! Here _is_ the old scoundrel! Is that right you’ve
got yourself engaged, Jack?’