To pull someone's leg / To tease
Literally 'to take the hair'. Means to joke at someone's expense or to trick them. Can be affectionate or mean depending on context.
—Did you really win the lottery? —No, I'm pulling your leg!
She always pulls my leg with that joke.
—Are you pulling my leg? —Not at all, it's true.