I don't think there's much better advice than what the OP has already said: train yourself to wonder if there's a deeper question that the asker might be asking. Ultimately it's a question of humility. I think dismissiveness is often motivated by an assumption that the asker has made a simple rookie thinking error, and that an involved answer isn't worth your time.