It is still an open question whether a compact embedded hypersurface in the Euclidean space $\mathbb{R}^{n+1}$ with constant mean curvature and spherical boundary is necessarily a hyperplanar ball or a spherical cap, even in the simplest case of surfaces in $\mathbb{R}^3$. In a recent paper, Alías and Malacarne (Rev. Mat. Iberoamericana18 (2002), 431–442) have shown that this is true for the case of hypersurfaces in $\mathbb{R}^{n+1}$ with constant scalar curvature, and more generally, hypersurfaces with constant higher-order $r$-mean curvature, when $r\geq2$. In this paper we deal with some aspects of the classical problem above, by considering it in a more general context. Specifically, our starting general ambient space is an orientable Riemannian manifold $\bar{M}$, where we will consider a general geometric configuration consisting of an immersed hypersurface into $\bar{M}$ with boundary on an oriented hypersurface $P$ of $\bar{M}$. For such a geometric configuration, we study the relationship between the geometry of the hypersurface along its boundary and the geometry of its boundary as a hypersurface of $P$, as well as the geometry of $P$ as a hypersurface of $\bar{M}$. Our approach allows us to derive, among others, interesting results for the case where the ambient space has constant curvature (the Euclidean space $\mathbb{R}^{n+1}$, the hyperbolic space $\mathbb{H}^{n+1}$, and the sphere $\mathbb{S}^{n+1}$). In particular, we are able to extend the symmetry results given in the recent paper mentioned above to the case of hypersurfaces with constant higher-order $r$-mean curvature in the hyperbolic space and in the sphere.