[Genesis 3:9]
Then the Lord God called to Adam and said to him, “Where are you?” [NKJV]
But the Lord God called out to the man, “Where are you?” [BSB]
"Where are you?"
Adam and Eve were yet inside the Garden of God, but they were outside the Presence of God or outside fellowship with God; however, that only brought them to where God's calling to man became necessary. Hence, "Where are you?" came from God as calling to the man. God was talking to man within a short distance and God knew the man could hear Him, and yet God asked the man, "Where are you?"
Asking someone, where are you, presupposes that the person is close enough to hear you calling for him or asking of his whereabout. That quest is not just seeking to hear or be heard, but is a quest seeking to be in the same place with the person or the seeker (either in spirit or body) to share the same feelings and fellowship of being with and where the other person is.
God required where Adam was from Adam, and it's a bit different from God requires where Abel was from Cain: "Adam, where are you?" was different from "Cain, where is your brother." The former means everyone shall give account of himself to God, while the latter means everyone may give account of his brother or another man under his watch.
Therefore:
Walking in His Presence means walking in the light. "If we walk in the light as God is in the light, then we have fellowship with one another, and the blood of Jesus His Son cleanses us from all sin." [1 John 1:7]. But if we hide like Adam from the presence of God, we are not walking in the same light God dwells in, and He may call to us with this question, "Where are you?"
Nevertheless, God still knew Adam where Adam was outside God's Presence. I say this because there are so many people outside God's Presence that God will tell, "I don't even know you where you are." As it is written,
When once the Master of the house has risen up and shut the door, and you begin to stand outside and knock at the door, saying, ‘Lord, Lord, open for us,’ and He will answer and say to you, ‘I do not know you, where you are from,’ then you will begin to say, ‘We ate and drank in Your presence, and You taught in our streets.’ But He will say, ‘I tell you I do not know you, where you are from. Depart from Me, all you workers of iniquity.’ There will be weeping and gnashing of teeth, when you see Abraham and Isaac and Jacob and all the prophets in the kingdom of God, and yourselves thrust out. [Luke 13:25-28 NKJV]