BBC: Genesis 3:9-13
But the Lord God called to the man and said to him, “Where are you?” And he said, “I heard the sound of you in the garden, and I was afraid, because I was naked, and I hid myself.” He said, “Who told you that you were naked? Have you eaten of the tree of which I commanded you not to eat?” The man said, “The woman whom you gave to be with me, she gave me fruit of the tree, and I ate.” Then the Lord God said to the woman, “What is this that you have done?” The woman said, “The serpent deceived me, and I ate.” - Genesis 3:9-13
It is of great value to notice immediately that man's attempt to hide himself does not fluster God. The omniscience of God should not come into question for the simple question of "where are you". Instead God should be seen as permitting man to participate in what He decides will be done. God was to be able fellowship and He sought out Adam to establish that fellowship.
It is worth noting that Adam is not ashamed of the sin as we would think of it. He seems only to be focused on the consequence and result. I would in fact challenge this. I think for the first time Adam is aware of his inferiority as a created being (his nakedness). He is finally aware that His fellowship with God was on the basis of God's grace and he is ashamed that the Creator stooped to the creature. This will be important since God goes through the effort of clothing man as a sign of His renewed grace.
God is quick to find out why man now sees the distinction. Man is quick to share the blame. God again is quick to know why. Woman is quick to share the blame. God is about restoration and man is about passing the buck.
*The Bible Blogging Commentary is a slow and simple treading of the Scriptures. No quotes from other theologians and no explicit Greek/Hebrew lessons.*