Here's the answer:
“ちょうど電話するところでした”
(chōdo denwa suru tokoro deshita)
Watch a real native speaker say it:
Here's how it sounds in a textbook:
Fun fact: the hundreds of thousands of people learning Japanese with Memrise get this phrase correct 90.75% of the time!