Many of the notions, methods and theorems of the mathematical logic and its different sub-fields like set theory, model theory, etc. are closely related to some philosophical background. I believe understanding these philosophical aspects of mathematical arguments could be very useful for logic students to understand the subjects better.
When I am teaching logic, I usually talk about the philosophical backgrounds of each concept/theorem briefly. But there is a problem here. Introducing philosophical subjects causes questions and discussions amongst students which is fine in principal but sometimes these discussions become hot and too long and change the direction of the arguments from mathematical part to philosophical part of the subject.
Question. How can I explain philosophical aspects of the logical theorems without distracting attention of the students from the main teaching subject? In the other words how can I manage the discussion frame and time of the philosophical parts of my logic courses? Precisely I am searching for some discussion managing techniques which are useful for managing a philosophical discussion in a mathematical logic course.