There are couple of ways to debug stored procedure:
- Using SQL Management studio (SSMS)
- Using Visual Studio
Refer:
Debug your stored procedure[
^]
At times, I also used to use logging in SP's to assess certain things. Cannot say what your interviewer was looking for though.