Gandalf would probably be utterly confused by how Yoda talks and would just nod along with what he is saying. Then Gandalf would just pull out his awesome pipe and say something completely irrelevant but funny. The whole conversation would end with them both high from Gandalf's pipe and trying to make the best shapes with the smoke.