If you choose to pay the dash cost rather than the mana cost, you're still casting the spell. It goes on the stack and can be responded to and countered. You can cast a creature spell for its dash cost only when you otherwise could cast that creature spell. Most of the time, this means during your main phase when the stack is empty.

Artwork
Loading artwork…
Ragavan, Nimble Pilferer
Modern Horizons 2 Timeshifts · #11 · EN
Nonfoil—Foil—
Card rules
Whenever Ragavan deals combat damage to a player, create a Treasure token and exile the top card of that player's library. Until end of turn, you may cast that card.
Dash 1
(You may cast this spell for its dash cost. If you do, it gains haste, and it's returned from the battlefield to its owner's hand at the beginning of the next end step.)
2/1
Mythic · Illustrated by Simon Dominic
Format legality
Brawl Legal
Commander Legal
Gladiator Legal
Modern Legal
Oathbreaker Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Competitive Brawl Restricted
Duel Banned
Future Not Legal
Historic Banned
Legacy Banned
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You must still follow all timing restrictions and pay all costs when casting the exiled card. If you exile a land card, you can't play that card.
You'll create a Treasure token even if that player has no cards left in their library to exile.
If a creature enters the battlefield as a copy of or becomes a copy of a creature whose dash cost was paid, the copy won't have haste and won't be returned to its owner's hand.
If you pay the dash cost to cast a creature spell, that card will be returned to its owner's hand only if it's still on the battlefield when its triggered ability resolves. If it dies or goes to another zone before then, it will stay where it is.
You don't have to attack with the creature with dash unless another ability says you do.