Just take the pawn, exd5. If he takes back with the queen, Nc3 to chase the queen.
Opening Question

You should always take the pawn. I've never heard anyone disagree.
The Scandinavian Defence (which is also known as the Centre Counter Defence) is actually a very simple opening to learn the basics of. For a start, you always play exd5. Then black has two options- Qxd5, or Nf6. Nf6 is a much rarer line than Qxd5, so that's what I'll talk about in this post which I've now decided will be sort-of like a miniature article.
So, your opponent has played Qxd5. We arrive at the position below:



To SteveCollyer:
That is if black follows along and takes the pawns. I have never taken the f-pawn. Masters say it looks complicated, so they either develop or even play e3 after white plays f3.
What is the best response when I open with e4 and someone replies with d5?
Any thoughts would be appreciated. Thanks!