be about to do (まさに~しようとしている): I was about to leave when the phone rang. (出かけようとしているところで電話が鳴った。)

I was about to leave when the phone rang.