Here's the answer:
“そうなんですか”
(sō nan desu ka)
Watch a real native speaker say it:
Here's how it sounds in a textbook:
You could also say:
- そうですか
Fun fact: the hundreds of thousands of people learning Japanese with Memrise get this phrase correct 89.25% of the time!