tomar el pelo
Spanish • Mexico
to pull/take the hair •
The Spanish equivalent of 'pulling someone's leg.'
In other words, it's typically used like "Are you messing with me?" or "Are you kidding me?" or "You're kidding me!" (depending on the tone and whether you phrase it like a question).
"¡¿En serio?! ¿Me estás tomando el pelo?"