In jest; "I asked him jokingly whether he thought he could drive the Calcutta-Peshawar express".
Not seriously; "I meant it facetiously".