Huh, thank you for explaining that. Prior to this I had only recognized the phrase "Are you taking the piss?" from watching Misfits, and from that context had always assumed it meant "are you out of your mind?". Seems more like "Are you screwing with me?" or "are you serious?" would be the more accurate meaning given this definition.