You did say the right thing for the moment, but you also have an opportunity (obligation) to learn about your faith and have an answer for next time. In reality, people use the “we don’t know the condition of anyone’s soul…” as a technique to avoid criticism as often as a pastoral response.
Look what the first Pope said (from 1Peter3):
*13 Now who is there to harm you if you are zealous for what is right? 14 But even if you do suffer for righteousness’ sake, you will be blessed. Have no fear of them, nor be troubled, 15 but in your hearts reverence Christ as Lord. Always be prepared to make a defense to any one who calls you to account for the hope that is in you, yet do it with gentleness and reverence; 16 and keep your conscience clear, so that, when you are abused, those who revile your good behavior in Christ may be put to shame. 17 For it is better to suffer for doing right, if that should be God’s will, than for doing wrong. 18 For Christ also died for sins once for all, the righteous for the unrighteous, that he might bring us to God, being put to death in the flesh but made alive in the spirit; 19 in which he went and preached to the spirits in prison, 20 who formerly did not obey, when God’s patience waited in the days of Noah, during the building of the ark, in which a few, that is, eight persons, were saved through water. 21 Baptism, which corresponds to this, now saves you, not as a removal of dirt from the body but as an appeal to God for a clear conscience, through the resurrection of Jesus Christ, 22 who has gone into heaven and is at the right hand of God, with angels, authorities, and powers subject to him.
The reason most people would not want to answer is concern (read fear) over social awkwardness or criticism. But the Pope who walked with Jesus said we need to be knowledgable and courageous enough to “give a defense” of the hope that is within us. Without regard to criticism or consequence.
The biggest criticism of Christians is that we don’t live our faith. Well if we, who claim to live in the beliefs of Christ aren’t going to proclaim it when asked, who will?
Pax
P.s. To your original post: We don’t get into heaven by following the Commandments, but how we live them out is a reflection of the faith that is within us.*