When I read your question, I realized that I wasn't really sure, B. It's an interjection that's often used as a preface to make a statement that follows more important, something the listener should really listen to and reflect upon.
The idiom is used to express impatience, anger and irritation over someone or something. Some examples are For crying out loud, listen to me! Do it, for crying out loud.