The correct answer is 'lo' for the question '¿Tienes el lápiz? Sí, aquí tengo.' in a Spanish context.
Lo is the correct option in the context provided. In Spanish, 'el lápiz' is a masculine singular noun, so the correct direct object pronoun to replace it is 'lo'.