Step 1: Understanding the Question.
Section 164 of the Criminal Procedure Code, 1973, outlines the procedure for a Magistrate to record confessions and statements made by an accused or witness during an investigation, ensuring they are voluntary.
Step 2: Conclusion.
Thus, the correct provision is Section 164, making (b) the correct answer.