For example, see the following reference:
Denison was interested, went over to him, and watched the swift, skilful manner in which the thin brown fingers worked.
"Where are you going to fish?" he inquired.
The broad, flat face lit up. "Outside in the dam deep water--sixty, eighty fa'am."
Can I also use "he asked" here? Where are the places I cannot use ask instead of inquire?